import 'package:flustars_flutter3/flustars_flutter3.dart';
import 'package:flutter/material.dart';
import 'package:ls_work/res/styles.dart';
import 'package:ls_work/widgets/load_image.dart';

class HomeTagView extends StatelessWidget {
  final String img;
  final String title;
  final Function()? onTap;
  HomeTagView({Key? key, required this.img,required this.title, this.onTap}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: onTap,
      child: Container(
        padding: EdgeInsets.only(bottom: 10),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.start,
          children: <Widget>[
            LoadAssetImage(img,height: 50,fit: BoxFit.cover,),
            SizedBox(
              height: 5,
            ),
            Text(
              title,
              style: TextStyles.textGray16,
            )
          ],
        ),
      ),
    );
  }
}
